package com.lysj.bhp.activity.repository;

import com.lysj.bhp.activity.domain.Activity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ActivityRepository extends JpaRepository<Activity, Long>, JpaSpecificationExecutor {

    //根据活动状态显示所有活动
    List<Activity> findByStatusOrderByCreateDateDesc(int status);

}
